'use strict';

function choose_divisible_integer(collection_a, collection_b) {
let result=[];
for(let item1 of collection_a){
  for(let item2 of collection_b){
    if(item1%item2===0){
      result.push(item1);
    }
  }
}
console.log(result);
return result;
  
}
choose_divisible_integer( [4,7,9,25,16,21,64,32,35,49],[2,3,5]);
module.exports = choose_divisible_integer;
